import React, { Component } from 'react';
import {Route, BrowserRouter as Router, Switch, Redirect} from 'react-router-dom';
import Login from './components/Login';
import Home from './components/home';
import { Provider } from 'mobx-react';
import store from './store/sip';

class App extends Component {
  render() {
    return (
        <Provider state={store.state} actions={store}>
            <Router>
                <Switch>
                    <Redirect from='/' to='/login' exact></Redirect>
                    <Route path="/login" component={Login}></Route>
                    <Route path='/home' component={Home}></Route>
                </Switch>

            </Router>
        </Provider>

    );
  }
}

export default App;

